package com.friday.dao;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AgentDao {

    JSONObject getAgentById(int id);

    JSONArray getAllAgent();

    int editAgent(JSONObject agent);

    int delAgentById(int id);

    int delAgentByCompany(int company_id);

    int changePassword(JSONObject agent);

    int addAgent(JSONObject agent);

    int checkExist(int id,String password);



}
